package com.lg.starttemplate.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "服务测试")
@RestController
@RequestMapping("/base")
public class BaseController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/baseConfig")
    public String getBaseConfig(){
        return serverPort;
    }
}
